import request from '@/utils/request'

// 商品列表
export function apiShopLists(params: any) {
    return request.get({ url: '/goods/lists', params })
}

// 添加商品
export function apiShopAdd(params: any) {
    return request.post({ url: '/goods/add', params })
}

// 编辑商品
export function apiShopEdit(params: any) {
    return request.post({ url: '/goods/edit', params })
}

// 删除商品
export function apiShopDelete(params: any) {
    return request.post({ url: '/goods/delete', params })
}

// 商品详情
export function apiShopDetail(params: any) {
    return request.get({ url: '/goods/detail', params })
}


// 商品分类列表
export function apiShopCategoryLists(params: any) {
    return request.get({ url: '/goodsCate/lists', params })
}

// 添加商品分类
export function apiShopCategoryAdd(params: any) {
    return request.post({ url: '/goodsCate/add', params })
}

// 编辑商品分类
export function apiShopCategoryEdit(params: any) {
    return request.post({ url: '/goodsCate/edit', params })
}

// 删除商品分类
export function apiShopCategoryDelete(params: any) {
    return request.post({ url: '/goodsCate/delete', params })
}

// 商品分类详情
export function apiShopCategoryDetail(params: any) {
    return request.get({ url: '/goodsCate/detail', params })
}